from multiprocessing import Pool
import sys
sys.path.append('C:\\Users\\SIEMENS\\AppData\\Local\\Programs\\Python\\untitled\\Spider\\week2\\2_3\\2_3code_of_video\\58tongcheng')
from channel_extact  import channel_list
from pages_parsing   import get_links_from


def get_all_links_from(channel):
    for i in range(1,3):
        get_links_from(channel,i)


if __name__ == '__main__':
    pool = Pool()
    # pool = Pool(processes=6)
    pool.map(get_all_links_from,channel_list.split())
